﻿@{
    ViewBag.Title = "CreatePiece";
}
@model SelfInfo.Models.PIECE
<h2>Create PIECE</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PIECE</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TYPE)
        </div>
        <div class="editor-field">
           @* @Html.EditorFor(model => model.TYPE)*@
            @Html.DropDownList("TYPE")
            @Html.ValidationMessageFor(model => model.TYPE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NAME)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NAME)
            @Html.ValidationMessageFor(model => model.NAME)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.STARTDATE)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.STARTDATE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ENDDATE)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ENDDATE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BRIEF)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BRIEF)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.COMMENT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.COMMENT)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SCORE)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SCORE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RESULT)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RESULT)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "IndexPiece")
</div>